# Maintainer: Felix Yan <felixonmars@archlinux.org>

pkgname=phrase-pinyin-data
pkgver=0.14.0
pkgrel=1
pkgdesc="Pinyin Data for Phrases"
arch=('any')
license=('MIT')
url="https://github.com/mozillazg/phrase-pinyin-data"
depends=()
source=("https://github.com/mozillazg/phrase-pinyin-data/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
sha512sums=('35e4b725d22401e838e7d96b9e3149d36f8adf38cf22be569c8d063fee5c266cfaa6d33a99474db0a6dfae0945415c36e67d91ac80b32a5169dac1e94f34f2df')

package() {
  cd $pkgname-$pkgver
  install -Dm644 pinyin.txt -t "$pkgdir"/usr/share/$pkgname/
  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
}
